/**
 * Created with Vim7.3 ubuntu12.04
 * @fileOverview : 
 * @author : Lyle <lylechen2014@gmial.com>
 * @since : 2015-01-07 17:51:07
 * @filename : /app/www/lyle/peas-angular/app/modules/test/testService.js
 * @version : 
 * @description : 
 */

define(function (require, exports, module) {
  'use strict';

  var app = require('app');

  //注册服务notify
  app.register.factory('notify', ['$window','_',function(win,_) {
        var msgs = [];
        console.log('backbone',_.VERSION);
        return function(msg) {
          msgs.push(msg);
          if (msgs.length == 3) {
            win.alert(msgs.join("\n"));
            msgs = [];
          }
        };
  }]);

});

